package com.cn.bukeManage.service;

import java.util.List;
import java.util.Map;
import org.springframework.ui.Model;
import com.cn.bukeManage.pojo.Indent;
import com.cn.bukeManage.pojo.page.IndentPage;
import com.cn.bukeManage.pojo.page.OrdersPage;
import com.cn.bukeManage.pojo.page.Page;
public interface OrdersService {

//	public List<Map<String, Object>> getAllOrderByStatus(Model model, Integer currentPage,Integer status);
	//顾客,测量, 安装,维修
//	public List<Map<String, Object>> getAllOrdersByStatus(Model model,Integer currentPage, Integer status,Integer afterSale);
	public OrdersPage getPageOfOrders(Integer currentPage,Integer status,Integer afterSale);
	public List<Map<String, Object>> getAllGoingOrder(Model model, Integer currentPage);
	public List<Map<String, Object>> getAllGoingOrdersAndIndent(Model model, Integer currentPage, Integer type);
//	public List<Map<String, Object>> getIndentOfDataByTypeAndStatus(Model model,Integer currentPage, Integer type, Integer status);
	public IndentPage getPageOfIndentByTypeAndStatus(Integer currentPage,Integer type, Integer status);
	public List<Map<String, Object>> getGoodsOfAfterSaleByNew(Model model,Integer currentPage,Integer status);
	public Page getPageOfGoodsOfAfterSale(Integer currentPage);
	public List<Map<String, Object>> getGoodsOfAccByOrderId(Integer orderId);
	public Integer updateOrderStatusByOrderIdAndStatus(Integer orderId, Integer status);
	public Indent getIndentByIndentId(Integer indentId);
	public Integer saveAddMoneyByIdAndMoney(Indent indent);
	public Integer toStopOrStartIndent(Integer indentId, Integer status);
	public Map<String,Object> getWorkerByIndentId(Integer indentId);
	public Integer shenHeDingDan(Integer orderId, Integer status);
	public Map<String, Object> getOrderByOrderId(Integer orderId);
	public Integer updateSupplyMethod(Integer orderId, String[] goodsIdArray,String[] noGoodsIdArray);
	List<Map<String, Object>> showIndents(Integer currentPage,Integer status, Model model);


}
